<template>
  <div class="mod-gs">
    <div class="hd">
      工商信息
      <!--      <select id="" name="">-->
      <!--        <option value="2019">2019</option>-->
      <!--        <option value="2018">2018</option>-->
      <!--      </select>-->
    </div>
    <div class="bd">
      <table v-if="detail" class="table">
        <tbody>
          <template v-for="row in sections">
            <tr :key="row.id">
              <th>{{ row.label }}</th>
              <td>{{ detail[row.id] }}</td>
            </tr>
          </template>
        </tbody>
      </table>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    detail: {
      type: Object,
      required: true
    },
    sections: {
      type: Array,
      required: true
    }
  }
};
</script>

<style scoped></style>
